//lzw.h
#ifndef LZW_H
#define LZW_H

//------------------
#include <stdio.h>
#include "variables.h"
#include "hashTable.h"
#include "statTable.h"
#include "compressor.h"
//------------------
class LZW : public Compressor
{
	private:
		HashTable hTable;
		StatTable sTable;
		long oldCode;
	public:
		LZW();
		~LZW();
		int compress(FILE* fileIn, FILE* fileOut);
		int decompress(FILE* fileIn, FILE* fileOut);
		void clear();
};

#endif
